package com.syni.mdd.sjb.community.base.constants;

/**
 * @className 用于存放系统级别的静态变量
 * @Author cfx
 * @DATE 2019/7/25 10:21
 * @VERSION 1.0
 **/
public class Constants {
    public static final String COMMON_FLAG_FALSE = "0"; // 通用标志-否
    public static final String COMMON_FLAG_TRUE = "1"; // 通用标志-是
    public static final int COMMON_FLAG_FALSE_INT = Integer.parseInt(COMMON_FLAG_FALSE);
    public static final int COMMON_FLAG_TRUE_INT = Integer.parseInt(COMMON_FLAG_TRUE);

    /*----------------------------------------------------------*/
    public static final String REDIS_KEY_PREFIX = "wechatoa:";  //Redis键前缀
    public static final String REDIS_KEY_TICKET = REDIS_KEY_PREFIX + "suiteTicket:";
    public static final String REDIS_KEY_PROVIDERTOKEN = REDIS_KEY_PREFIX + "providertoken";
    public static final String REDIS_KEY_SUITE_ACCESS_TOKEN = REDIS_KEY_PREFIX + "suite:accesstoken";
    public static final String REDIS_KEY_ACCESS_TOKEN = REDIS_KEY_PREFIX + "accesstoken";
    public static final String REDIS_KEY_JSAPI_TICKET = REDIS_KEY_PREFIX + "jsapiTicket:";
    public static final String REDIS_KEY_ACCESS_TOKEN_BY_PCODE = REDIS_KEY_PREFIX + "accessToken:";
    public static final String REDIS_KEY_AUTH_CODE = REDIS_KEY_PREFIX + "tmp:authCode";
    /*----------------------------------------------------------*/

    //觅东东数据宝企业后台角色
    public static final int QYWX_ADMIN_ROLE_CREATE = 1;
    public static final int QYWX_ADMIN_ROLE_PM = 2;

    //验证码类型
    public static final int BIND_PHONE_10 = 10;

    //觅东东数据宝原有登录方式
    public static final int LOGIN_WAY_PWD = 2;

    /**
     * 企业微信相关
     * <pre>
     *     QYWX_OK:接口调用成功的标志
     *     ERROR_CODE:企业微信返回码
     *     ERROR_MSG:企微微信错误提示信息
     *     EXTERNAL_CONTACT_LIST:外部联系人批量详情接口返回列表
     *     TAG_GROUP:企业标签返回列表
     * </pre>
     */
    public static final int QYWX_OK = 0;
    public static final String ERROR_CODE = "errcode";
    public static final String NEXT_CURSOR = "next_cursor";
    public static final String ERROR_MSG = "errmsg";
    public static final String EXTERNAL_CONTACT_LIST = "external_contact_list";
    public static final String TAG_GROUP = "tag_group";
    public static final String GROUP_CHAT_LIST = "group_chat_list";
    public static final String GROUP_CHAT = "group_chat";
    public static final String BEHAVIOR_DATA = "behavior_data";
    public static final String ITEMS = "items";
    public static final String FOLLOW_USER = "follow_user";
    public static final String TAG_PERSONAL_TYPE = "2";
}
